package com.example.demo.service;


import org.apache.shiro.crypto.hash.Md5Hash;
import org.springframework.stereotype.Service;
@Service("passwordService")
public class PasswordService {
	
	 public String encryptPassword(String password, String salt)
	    {
	       
	        String ciphertext = new Md5Hash(password,salt,2).toString(); //生成的密文
            return  ciphertext;
	    }

}
